<!DOCTYPE html>
<html>
<head>
	<template file="Home/meta" />
	<template file="Home/css" />









</head>
<body>


<section class="am-panel am-panel-danger am-margin-lg">
	<header class="am-panel-hd">
		<h3 class="am-panel-title">消息</h3>
	</header>
	<div class="am-panel-bd">
		<?php if(isset($message)) {?>

		<p><?php echo($message); ?></p>
		<?php }else{?>

		<p><?php echo($error); ?></p>
		<?php }?>

		<p>

			<if condition="$btn">
				<volist name="btn" id="v">
					<a class=" button button-rounded ml20 {$v.class|default="button-flat-primary"}" href="{$v.url}">{$v.title}</a>
				</volist>

				<else/>
				<a class="   " id="href" href="<?php echo($jumpUrl); ?>">返回 (<b id="wait"><?php echo($waitSecond); ?></b>)</a></if>
		</p>
	</div>
</section>

<script type="text/javascript">
	(function(){
		var wait = document.getElementById('wait'),href = document.getElementById('href').href;
		var interval = setInterval(function(){
			var time = --wait.innerHTML;
			if(time <= 0) {
				location.href = href;
				clearInterval(interval);
			};
		}, 1000);
	})();
</script>

</body>
</html>